﻿Namespace Empleados
    Public Class Profesor
        Inherits Empleado

        Private _numeroDeCursos As Integer
        Public Property NumeroDeCursos() As Integer
            Get
                Return _numeroDeCursos
            End Get
            Set(ByVal value As Integer)
                _numeroDeCursos = value
            End Set
        End Property

        Public Overrides Function CalcularSueldo() As Double
            Return 150 * NumeroDeCursos
        End Function
    End Class
End Namespace
